package chapterSystem.client.interfaceDrawing;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.TextArea;

/**
 * User: Hasp
 * Date: 09.03.12
 * Time: 22:30
 */
public class InterfaceProvider {
    private static InterfaceProvider instance;

    private InterfaceProvider() {}

    public static InterfaceProvider getInstance() {
        if (instance == null) {
            instance = new InterfaceProvider();
        }

        return instance;
    }

    public Button createMenuButton(String label) {
        Button button = new Button(label);

        button.setStyleName("button_style");
//        button.setWidth("180px");
//        button.setHeight("25px");

        return button;
    }

    public TextArea createTextField() {
        TextArea ta = new TextArea();

        ta.setWidth("180px");
        ta.setHeight("25px");
        return ta;
    }
}
